package com.siyue.servlet;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class MemberLogoutServlet extends TopServlet {

	private static final long serialVersionUID = 123456789012345013L;

	public void doPost(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {

		request.getSession().removeAttribute("member");
		request.setAttribute("message", "");
		request.getSession().invalidate();
		this.sendRedirect(request, response, "/MainServlet");

	}
}
